<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//http://localhost/zhyl/public/login
//Route::any('/', 'LoginController@login')->name("/");
Route::any('/view_index', 'HomeController@view_index')->name("/view_index");//微信商城首页
Route::any('/', 'HomeController@view_index')->name("/view_index");
Route::any('/login', 'LoginController@login')->name("login");

Route::any('/homepage', 'LoginController@homepage')->name("homepage");
Route::any('/girdindex', 'IndexController@view_girdindex')->name("girdindex");//后台首页图
Route::any('/managerlist', 'IndexController@view_managerlist')->name("managerlist");//管理员列表
Route::any('/view_rolelist', 'IndexController@view_rolelist')->name("view_rolelist");//角色列表
Route::any('/view_editoradmin', 'IndexController@view_editoradmin')->name("view_editoradmin");//编辑管理员
Route::any('/view_roleadd', 'IndexController@view_roleadd')->name("view_roleadd");//新增权限
Route::any('/view_adminadd', 'IndexController@view_adminadd')->name("view_adminadd");//新增管理员


Route::any('/view_goodslist', 'GoodsController@view_goodslist')->name("view_goodslist");//礼品列表
Route::any('/view_gooddetail', 'GoodsController@view_gooddetail')->name("view_gooddetail");//编辑礼品详情
Route::any('/view_addgood', 'GoodsController@view_addgood')->name("view_addgood");//新增礼品详情

Route::any('/view_recordlist', 'GoodsController@view_recordlist')->name("view_recordlist");//兑换记录列表
Route::any('/view_shoplist', 'GoodsController@view_shoplist')->name("view_shoplist");//门店列表

//********************************************************************************************************************************
Route::any('/view_memberslist', 'MembersController@view_memberslist')->name("view_memberslist");//注册用户列表
Route::any('/memberslist', 'MembersController@memberslist')->name("memberslist");//注册用户列表
Route::any('/getuserinfo', 'MembersController@getuserinfo')->name("getuserinfo");//获取用户个人信息
Route::any('/updateuserinfo', 'MembersController@updateuserinfo')->name("updateuserinfo");//获取用户个人信息


//*********************************************************************************************************************************
//权限路由
Route::any('/gettree', 'IndexController@gettree')->name("gettree");//获取树形菜单
Route::any('/mldata', 'IndexController@mldata')->name("mldata");//
Route::any('/iroleList', 'IndexController@IRoleList')->name("iroleList");//获取角色列表
Route::any('/updaterole', 'IndexController@updaterole')->name("updaterole");//更新用户角色等信息
Route::any('/addrole', 'IndexController@addrole')->name("addrole");//增加角色
Route::any('/getauth', 'IndexController@getauth')->name("getauth");//获取权限
Route::any('/addroleauth', 'IndexController@addroleauth')->name("addroleauth");//增加角色权限
Route::any('/addmanager', 'IndexController@addmanager')->name("addmanager");//增加管理员
Route::any('/deletemanager', 'IndexController@deletemanager')->name("deletemanager");//删除管理员
Route::any('/rolebtnlist', 'IndexController@rolebtnlist')->name("rolebtnlist");//按钮权限列表
Route::any('/getrolebtnlist', 'IndexController@getrolebtnlist')->name("getrolebtnlist");//角色拥有的按钮权限
//前台网站路由***********************************************************************************************************
Route::any('/view_index', 'HomeController@view_index')->name("/view_index");//微信商城首页
Route::any('/view_detail', 'HomeController@view_detail')->name("view_detail");//微信商城商品详情
Route::any('/view_reg', 'HomeController@view_reg')->name("view_reg");//微信商城--我的
Route::any('/view_search', 'HomeController@view_search')->name("view_search");//微信商城--绑定界面
Route::any('/captcha', 'HomeController@captcha')->name("captcha");//前台验证码
Route::any('/view_login', 'HomeController@view_login')->name("view_login");//登陆-注册界面
Route::any('/appreg', 'HomeController@appreg')->name("appreg");//登陆-注册界面
Route::any('/applogin', 'HomeController@applogin')->name("applogin");//网站登陆
Route::any('/trade_page_callback', 'HomeController@trade_page_callback')->name("trade_page_callback");//支付宝网页支付回调地址
Route::any('/trade_application_interface', 'HomeController@trade_application_interface')->name("trade_application_interface");//支付宝应用网关接口

//*********************************************************************************************************************





//商品控制器路由
Route::any('/goodslist', 'GoodsController@goodslist')->name("goodslist");//商品列表
Route::any('/addgood', 'GoodsController@addgood')->name("addgood");//新增商品
Route::any('/uploadfile', 'GoodsController@uploadfile')->name("uploadfile");//上传图片文件
Route::any('/senddata', 'GoodsController@senddata')->name("senddata");//兑换记录列表
Route::any('/base64', 'GoodsController@base64')->name("base64");//兑换记录列表
Route::any('/goodsjxj', 'GoodsController@goodsjxj')->name("goodsjxj");//上下架商品
Route::any('/shoplist', 'GoodsController@shoplist')->name("shoplist");//门店列表
Route::any('/add_update_shop', 'GoodsController@add_update_shop')->name("add_update_shop");//新增更新门店信息
Route::any('/deleteshop', 'GoodsController@deleteshop')->name("deleteshop");//删除门店信息
Route::any('/shopdetail', 'GoodsController@shopdetail')->name("shopdetail");//门店详情信息
Route::any('/recordlist', 'GoodsController@recordlist')->name("recordlist");//兑换记录列表
Route::any('/savewldh', 'GoodsController@savewldh')->name("savewldh");//更新兑换记录的物流单号信息
Route::any('/dhjlzf', 'GoodsController@dhjlzf')->name("dhjlzf");//兑换记录作废
Route::any('/exportExcel', 'GoodsController@exportExcel')->name("exportExcel");//导出excel
Route::any('/importExcel', 'GoodsController@importExcel')->name("importExcel");//导入excel
Route::any('/getChildren', 'GoodsController@getChildren')->name("getChildren");//获取物品的子项
//订单控制器路由
Route::any('/view_orderlist', 'OrdersController@view_orderlist')->name("view_orderlist");//新增管理员
Route::any('/orderslist', 'OrdersController@orderslist')->name("orderslist");//订单列表
